#include "myedit.h"
#include <QDebug>
#include <QEvent>
void Myedit::keyPressEvent(QKeyEvent *event)
{
    qDebug() << "Myedit::keyPressEvent" << Qt::endl;
    QLineEdit::keyPressEvent(event);
    event->ignore();
}

bool Myedit::event(QEvent *e)
{
    if(e->type() == QEvent::KeyPress){
        qDebug() << "Myedit::event" << Qt::endl;
        //return false;
    }
    return QLineEdit::event(e);
}



